package com.wuyoucar.service.impl;

import com.wuyoucar.common.ResultBean;
import com.wuyoucar.entity.TUserinfo;
import com.wuyoucar.mapper.TUserinfoMapper;
import com.wuyoucar.service.ITUserinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TUserinfoServiceImpl implements ITUserinfoService {
    @Autowired
    TUserinfoMapper tUserinfoMapper;

    @Override
    public ResultBean insertTUserinifo(TUserinfo tUserinfo) {
        int i = tUserinfoMapper.insertTUserinfo(tUserinfo);
        if (i>0){
            return new ResultBean(200,"插入成功");
        }else{
            return new ResultBean(404,"插入失败");
        }

    }
}
